package BeenChina.PM.DAO;

import java.util.List;  

import BeenChina.PM.Model.ModelRole;
import BeenChina.PM.Model.ModelUser;
import BeenChina.PM.Model.ModelUserRole;


public interface SystemInfoDao {
	/*�û���Ϣ*/ 
	 public List<ModelUser> selectUsers();
	 public Integer insertUser(ModelUser model);
	 public Integer deleteUser(String userID);
	 public Integer updateUser(ModelUser model);
	 public Integer existUser(String userID);
	 public Integer verifyUser(ModelUser model);
	 public Integer updateSessionId(ModelUser model);
	 public String  getSessionId(String userID);
	 public ModelUser selectUser(String userID);
	 public Integer changePass(ModelUser model);
	 
	 /*��ɫ��Ϣ*/
	 public List<ModelRole> selectRoles();
 	 public Integer insertRole(ModelRole model);
	 public Integer deleteRole(String roleID);
	 public Integer updateRole(ModelRole model);
	 public Integer existRole(String roleID); 
	 
	 /*�û���ɫ*/
	 public List<ModelUserRole> selectUserRoles(String UserID);
	 public Integer deleteUserRoles(String UserID);
	 public Integer insertUserRole(ModelUserRole model);	 
}
